//
//  EvenRedCell.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/6/30.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "EvenRedCell.h"
#import "GreatGodModel.h"

@interface EvenRedCell()
@property (weak, nonatomic) IBOutlet UILabel *evenmingc;
@property (weak, nonatomic) IBOutlet UIImageView *evenImg;
@property (weak, nonatomic) IBOutlet UILabel *evenName;
@property (weak, nonatomic) IBOutlet UILabel *evenSign;
@property (weak, nonatomic) IBOutlet UILabel *evenredLianH;
@end
@implementation EvenRedCell
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.evenImg.layer.cornerRadius = self.evenImg.width / 2;
    self.evenImg.layer.masksToBounds = YES;

}

-(void)setEvenCellDataSource:(GreatGodModel *)model index:(NSIndexPath *)indexPath{
    [self.evenmingc setText:[NSString stringWithFormat:@"%ld",(long)indexPath.row + 1]];
    [self.evenImg sd_setImageWithURL:[NSURL URLWithString:model.greatimgPath] placeholderImage:DEF_NORMAL_DEFAULT_IMAGE];
    [self.evenName setText:model.greatusername];
    [self.evenSign setText:model.greatuserSign];
   
    [self.evenredLianH setAttributedText:[MXUtility getAmountWithColor:DEF_COLOR_MAINCOLOR amoutFont:[UIFont systemFontOfSize:18] unitFont:[UIFont systemFontOfSize:13] amount:[NSString stringWithFormat:@"%@",model.greatredCount] unit:@"连红"]];

    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
